package com.ld.security.common.elastic.base.repository;

import com.ld.security.common.elastic.base.model.SuperModel;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.data.repository.NoRepositoryBean;

import java.util.Collection;
import java.util.List;

@NoRepositoryBean
public interface SuperRepository<E extends SuperModel> extends ElasticsearchRepository<E,String> {

    List<E> findByIdIn(Collection<String> id);

}
